import request from '@/utils/request'



export function antiExplosionList(data) { //防爆电气设备台账-列表
  return request({
    url: '/project-quality/api/standingBooProofEquipment/page',
    method: 'post',
    data
  })
}


export function antiExplosionAdd(data) { //防爆电气设备台账-新增
  return request({
    url: '/project-quality/api/standingBooProofEquipment/add',
    method: 'post',
    data
  })
}

//原 put
export function antiExplosionEdit(data) { //防爆电气设备台账-编辑
  return request({
    url: '/project-quality/api/standingBooProofEquipment/edit',
    method: 'post',
    data
  })
}

//原 del
export function antiExplosionDelete(id) { //防爆电气设备台账-删除
  return request({
    url: '/project-quality/api/standingBooProofEquipment/del/' + id,
    method: 'get',
  })
}


export function antiExplosionDetails(id) { //防爆电气设备台账-详情
  return request({
    url: '/project-quality/api/standingBooProofEquipment/' + id,
    method: 'get',
  })
}
export function  antiExplosionExport(data) { //防爆电气设备台账-导出
  return request({
      url: '/project-quality/api/standingBooProofEquipment/export',
      responseType: 'arraybuffer',
      method: 'POST',
      data,
  })
}